package fitdroid.tabs;

import android.app.Activity;
import android.app.LocalActivityManager;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TableLayout;
import coderminus.maps.MapsActivity;
import coderminus.maps.R;

public class RunSetup2 extends Activity {
	protected static final String TAG = "runsetup";

	private Button startbutton;
	private TableLayout contentlayout = null;
	private LocalActivityManager mActivityManager = null;
	private RunSetup2 rs2;
	private Intent next = null;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.runsetup);

		startbutton = (Button) findViewById(R.id.startbutton);
		startbutton.setOnClickListener(startbuttonListener);

		contentlayout = (TableLayout) findViewById(R.id.widget30);
		rs2 = this;
		// next = new Intent(this, coderminus.maps.MapsActivity.class);

	}

	private OnClickListener startbuttonListener = new OnClickListener() {
		public void onClick(View v) {
			Intent map = new Intent(getParent(), MapsActivity.class);
			TabGroupActivity parentActivity = (TabGroupActivity) rs2.getParent();
			parentActivity.startChildActivity("EditActivity", map);
			

		}
	};
}
